﻿using GBlog.Core.Entities;
using System.Data.Entity;
namespace GBlog.Core.Mapping
{
    public class FileTypeMap : MapBase<FileType, int>
    {
        public FileTypeMap()
        {
            ToTable("Core_FileType");
            RegisterID();
            Property(t => t.Name).IsRequired().HasMaxLength(64);
            Property(t => t.Extension).IsRequired().HasMaxLength(16);
            Property(t => t.Icon);
            RegisterDefault();
        }
    }
}